import res from '@/utils/request';
import { Col , Row } from 'antd';
import React from 'react';
const Grid = ({
  children,
  ...rest
}:any)=>{
  // console.log({rest})
  // return null
  return <Row >
    {children.map(item=>{
      return <Col key={item.key} flex={1}>{item}</Col>
    })}
  </Row>
// return (<Row>{React.Children.map(children,()=>{
//   return <Col flex={1}>sss</Col>
// })}</Row>)
}
const QuickGridCol = ({children,key,header}:any)=>{
 return <div>{children}</div>
}
Grid.QuickGridCol = QuickGridCol
export default Grid